package com.lyn.pluginbazaar.entity;

import com.alibaba.fastjson.JSON;
import com.lyn.pluginbazaar.utils.CheckUtil;

public class LoginUser {

    @CheckUtil.NotNull
    private String userName;
    @CheckUtil.NotNull
    private String password;
    private String checkKey;
    @CheckUtil.NotNull
    private String checkCode;

    public LoginUser() {
    }

    public LoginUser(String userName, String password, String checkKey, String checkCode) {
        this.userName = userName;
        this.password = password;
        this.checkKey = checkKey;
        this.checkCode = checkCode;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getCheckKey() {
        return checkKey;
    }

    public void setCheckKey(String checkKey) {
        this.checkKey = checkKey;
    }

    public String getCheckCode() {
        return checkCode;
    }

    public void setCheckCode(String checkCode) {
        this.checkCode = checkCode;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
